package com.yjd.comm.app.service;

import com.yjd.comm.app.model.BannerModel;
import com.yjd.comm.base.service.IBaseService;

/**
 * <b>description</b>：首页banner业务接口<br>
 * <b>time</b>：2017-06-26 13:26:48 <br>
 * <b>author</b>：  yangchangyan@yijiedai.com
 */
public interface IBannerService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public BannerModel insert(BannerModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(BannerModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param banner_id
	 * @return
	 * @throws Exception
	 */
	public int delete(long banner_id) throws Exception;

}
